package com.leige.controller;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;

@Controller
@ResponseBody
public class MainController {
	@RequestMapping("/main")
	public  ResponseEntity<ArrayList> testName() {
		ArrayList list=new ArrayList<>();
		list.add(1213);
		list.add(3223);
		list.add(new Date());
		System.err.println(JSON.toJSON(list));
		return ResponseEntity.status(0).body(list);
	}
}
